<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/jquery.cookie.js"></script>
<title>微信授权登录中...</title>
</head>
<body>
	<script>
	$(function(){
		console.log("setTimeout");
		setTimeout("redirect()", 0);
	});
			
	function redirect(){
		// 创建一个cookie并设置cookie的有效路径为7天
		$.cookie('ukey', '${openid}', { expires: 7, path: '/' });
		var redirectUrl = $.cookie('redirect_url');
		window.location.href = redirectUrl;
	}
</script>
</body>
</html>